import { Injectable } from '@angular/core';
import { Http } from '@angular/http';

import { HttpService } from './HttpService';

@Injectable()
export class SettingService {
  constructor (
    private http: Http,
    private httpService: HttpService
  ) {}

  getSetting(data) {
    let url = '/api/setting/get';
    return this.httpService.httpPostNoAuth(url, data);
  }

  save(data) {
    let url = '/api/setting/save';
    return this.httpService.httpPostNoAuth(url, data);
  }
}
